﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SEscortSignUp extends IMessageBase
    {
        public var entityId:SEntityId;
        public var gateChannelId:int;
        public var isEscort:Boolean;
        public var signUp:Boolean;
        public const _type:int = 19008;
        public static var _regist:SEscortSignUp = new SEscortSignUp(true);

        public function SEscortSignUp(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SEscortSignUp();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            param1.writeInt(this.gateChannelId);
            param1.writeBool(this.isEscort);
            param1.writeBool(this.signUp);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.gateChannelId = param1.readInt();
            this.isEscort = param1.readBool();
            this.signUp = param1.readBool();
            return;
        }// end function

    }
}
